home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / objpak / rectangl.h.z / rectangl.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.8 KB  |  88 lines

  1.  
  2. /*
  3.  * Portable Object Compiler (c) 1997,98,99.  All Rights Reserved.
  4.  * $Id: rectangl.h,v 1.11 1999/06/23 19:22:13 stes Exp $
  5.  */
  6.  
  7. /*
  8.  * This library is free software; you can redistribute it and/or modify it
  9.  * under the terms of the GNU Library General Public License as published 
  10.  * by the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef __OBJRECT_H__
  24. #define __OBJRECT_H__
  25.  
  26. #ifndef __OBJECT_INCLUDED__
  27. #define __OBJECT_INCLUDED__
  28. #include <stdio.h>
  29. #include "Object.h" /* Stepstone Object.h assumes #import */
  30. #endif
  31.  
  32. @interface Rectangle : Object
  33. {
  34.     id origin;
  35.     id corner;
  36. }
  37.  
  38. + new;
  39. + origin:p corner:q;
  40. + origin:p extent:q;
  41. + origin:(int)x1:(int)y1 corner:(int)x2:(int)y2;
  42. + origin:(int)x:(int)y extent:(int)w:(int)h;
  43. - free;
  44.  
  45. - origin:p;
  46. - corner:q;
  47. - origin:p corner:q;
  48. - extent:(int)w:(int)h;
  49. - extent:q;
  50. - origin:(int)x1:(int)y1;
  51. - corner:(int)x1:(int)y1;
  52.  
  53. - (BOOL) contains:aPoint;
  54. - (unsigned) hash;
  55. - (BOOL) isEqual:aRectangle;
  56.  
  57. - (int) left;
  58. - (int) right;
  59. - (int) top;
  60. - (int) bottom;
  61. - (int) width;
  62. - (int) height;
  63. - origin;
  64. - topLeft;
  65. - topRight;
  66. - topCenter;
  67. - corner;
  68. - bottomLeft;
  69. - bottomCenter;
  70. - bottomRight;
  71. - center;
  72. - leftCenter;
  73. - rightCenter;
  74. - extent;
  75. - quickMerge:rect;
  76.  
  77. - moveBy:aPoint;
  78. - translateBy:p;
  79. - align:p1 with:p2;
  80.  
  81. - printOn:(IOD)aFile;
  82. @end
  83.  
  84. #endif /* __OBJRECT_H__ */
  85.  
  86.  
  87.  
  88.